package com.ruoyi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 */
// 开启定时任务
@EnableScheduling
// 开启异步任务
@EnableAsync
// 扫描指定包下的mapper
@MapperScan(value = {"com.develop.*.*.mapper","com.ruoyi.*.*.mapper","com.develop.*.mapper"})
// 扫描指定包下的类
@ComponentScan(value = {"com.develop","com.ruoyi"} )
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("项目启动成功");
    }
}
